From 8148452c35751a069834fc0a3b55299d7dfa98b9 Mon Sep 17 00:00:00 2001 From: "akw27@arcadians.cl.cam.ac.uk" Date: Thu, 4 Aug 2005 15:02:09 +0000 Subject: [PATCH] Add missing parallax makefile. Seems to have vanished in the directory shuffle of last month. Signed-off-by: andrew.warfield@cl.cam.ac.uk Signed-off-by: Nguyen Anh Quynh --- tools/blktap/parallax/Makefile | 64 ++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 tools/blktap/parallax/Makefile diff --git a/tools/blktap/parallax/Makefile b/tools/blktap/parallax/Makefile new file mode 100644 index 0000000000..c61b684c00 --- /dev/null +++ b/tools/blktap/parallax/Makefile @@ -0,0 +1,64 @@ +XEN_ROOT = ../../.. +include $(XEN_ROOT)/tools/Rules.mk + +PARALLAX_INSTALL_DIR = /usr/sbin + +INSTALL = install +INSTALL_PROG = $(INSTALL) -m0755 +INSTALL_DIR = $(INSTALL) -d -m0755 + +INCLUDES += -I.. -I/usr/include -I $(XEN_LIBXC) + +LDFLAGS = -L.. -lpthread -lz -lblktap + +#PLX_SRCS := +PLX_SRCS := vdi.c +PLX_SRCS += radix.c +PLX_SRCS += snaplog.c +PLX_SRCS += blockstore.c +PLX_SRCS += block-async.c +PLX_SRCS += requests-async.c +VDI_SRCS := $(PLX_SRCS) +PLX_SRCS += parallax.c + +#VDI_TOOLS := +VDI_TOOLS := vdi_create +VDI_TOOLS += vdi_list +VDI_TOOLS += vdi_snap +VDI_TOOLS += vdi_snap_list +VDI_TOOLS += vdi_snap_delete +VDI_TOOLS += vdi_fill +VDI_TOOLS += vdi_tree +VDI_TOOLS += vdi_validate + +CFLAGS += -Wall +CFLAGS += -Werror +CFLAGS += -Wno-unused +#CFLAGS += -O3 +CFLAGS += -g3 +CFLAGS += -fno-strict-aliasing +CFLAGS += $(INCLUDES) +CFLAGS += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE +# Get gcc to generate the dependencies for us. +CFLAGS += -Wp,-MD,.$(@F).d +DEPS = .*.d + +OBJS = $(patsubst %.c,%.o,$(SRCS)) +IBINS = parallax $(VDI_TOOLS) + +all: $(VDI_TOOLS) parallax blockstored + +install: all + $(INSTALL_PROG) $(IBINS) $(DESTDIR)$(PARALLAX_INSTALL_DIR) + +clean: + rm -rf *.o *~ $(DEPS) xen TAGS $(VDI_TOOLS) parallax vdi_unittest + +parallax: $(PLX_SRCS) + $(CC) $(CFLAGS) -o parallax -L.. $(LDFLAGS) $(PLX_SRCS) + +${VDI_TOOLS}: %: %.c $(VDI_SRCS) + $(CC) $(CFLAGS) -g3 -o $@ $@.c $(LDFLAGS) $(VDI_SRCS) + +.PHONY: TAGS clean install rpm +-include $(DEPS) \ No newline at end of file -- 2.30.2